<template>
  <page-meta :root-font-size="$rootFontSize"></page-meta>
  <view>
    <u-parse class="p-4" :content="article.html"></u-parse>
  </view>
</template>

<script>
import { getRichText } from '../../services/user';

export default {
  data() {
    return {
      article: {},
    };
  },
  async created() {
    const { type } = this.$Route.query;
    await this._getRichText(type);
    uni.setNavigationBarTitle({
      title: '评价规则说明',
    });
  },
  methods: {
    async _getRichText(type) {
      const { code, data } = await getRichText({ type });
      if (code != 200) return;
      this.article = data;
    },
  },
};
</script>

<style></style>
